$(document).ready(function(){
		//name index 값은 각 내용에 맞게 수정해주세요.
		$("#admin_1").jqGrid({
			url: 'http://apis.daum.net/socialpick/search?output=json',
			datatype: 'jsonp',
			mtype: 'get',
			colNames: ['','시간' , '작업', '결과'],
			colModel: [
				{name: 'rank', index: 'rank', width:20, align: 'center'},  //check box 영역
				{name: 'keyword', index: 'keyword', width:120, align: 'center'},
				{name: 'link', index: 'link', width:150, align: 'center'},
				{name: 'contents', index: 'contents', width:40, align: 'center'},
			],
			//width:350,
			height:"250",
			pager: $('#pager1'),
			jsonReader:{
				repeatitems: false,
				id: "rank",
				root: function(obj) {return obj.socialpick.item;},
				page: function(obj) {return 1;},
				total: function(obj) {return 1;},
				records: function(obj) {return obj.socialpick.item.length;}
			}
		});
		//$("#list").jqGrid('gridResize',{minWidth:'350',maxWidth:'100%',minHeight:'80', maxHeight:'100%'});



		$("#admin_2").jqGrid({
			url: 'http://apis.daum.net/socialpick/search?output=json',
			datatype: 'jsonp',
			mtype: 'get',
			colNames: ['순위2','소셜픽키워드', '이슈에 대한 링크 URL'],
			colModel: [
				{name: 'rank', index: 'rank', width:40, align: 'center'},
				{name: 'keyword', index: 'keyword', width:100, align: 'left'},
				{name: 'link', index: 'link', width:100, align: 'left'},
			],
			width:350,
			height:"250",
			//caption: '다음소셜픽',
			pager: $('#pager1'),
			jsonReader:{
				repeatitems: false,
				id: "rank",
				root: function(obj) {return obj.socialpick.item;},
				page: function(obj) {return 1;},
				total: function(obj) {return 1;},
				records: function(obj) {return obj.socialpick.item.length;}
			}
		});
		
		//$("#browser").treeview();


		
	});
	

	
